package com.jjkj.config;

import com.jfinal.config.Interceptors;
import com.jjkj.base.interceptor.BusinessExceptionInterceptor;
import com.jjkj.base.interceptor.JwtInterceptor;
import io.jboot.core.listener.JbootAppListenerBase;

/**
 * jfinal config
 * @author Rlax
 *
 */
public class AppListener extends JbootAppListenerBase {

    @Override
    public void onInterceptorConfig(Interceptors interceptors) {
        interceptors.add(new BusinessExceptionInterceptor());
        interceptors.add(new JwtInterceptor());
    }

}
